#!/bin/bash
#
read -p "用户名：" user
read -p "密码：" password

useradd $user
echo "$password" | passwd --stdin  $user &> /dev/null
echo "用户${user}创建完成，初始密码为${password}" 
